package com.yanqu.road.entity.activity.washe.data;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_washe_last_result")
public class WasheLastResultData extends DataObject {

    @FieldTypeAnnotation(desc = "玩家ID", select = true, update = true)
    private long userId;
    @FieldTypeAnnotation(desc = "赛季")
    private int season;
    @FieldTypeAnnotation(desc = "数据")
    private String msgData;
    @FieldTypeAnnotation(desc = "是否处理")
    private boolean handle;
    @FieldTypeAnnotation(desc = "是否观看")
    private boolean read;
    @FieldTypeAnnotation(desc = "结束时间")
    private long time;

    public int getSeason() {
        return season;
    }

    public void setSeason(int season) {
        if (season != this.season) {
            this.season = season;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public String getMsgData() {
        return msgData;
    }

    public void setMsgData(String msgData) {
        if (msgData == null) {
            return;
        }
        if (this.msgData == null || !this.msgData.equals(msgData)) {
            this.msgData = msgData;
            setOp(DataStatus.Update);
        }
    }

    public boolean isRead() {
        return read;
    }

    public void setRead(boolean read) {
        if (this.read != read) {
            this.read = read;
            setOp(DataStatus.Update);
        }
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        if (this.time != time) {
            this.time = time;
            setOp(DataStatus.Update);
        }
    }

    public boolean isHandle() {
        return handle;
    }

    public void setHandle(boolean handle) {
        if (this.handle != handle) {
            this.handle = handle;
            setOp(DataStatus.Update);
        }
    }

}
